package jnpf.engine.model.open.resp;

import jnpf.engine.model.flowtask.PaginationFlowTask;
import lombok.Data;


/**
 * @description: 流程查询分页返回
 * @author: duanxu
 * @create: 2025-01-08 15:28
 **/
@Data
public class FlowPageResp {

    private Long current;
    private Long size;
    private Long total;

    public void setPage(Long current, Long size,Long total) {
        this.current = current;
        this.size = size;
        this.total = total;
    }

    public void setPage(PaginationFlowTask task) {
        this.current = task.getCurrentPage();
        this.size = task.getPageSize();
        this.total = task.getTotal();
    }
}
